Creates a new asset revision
Creates a new asset revision
- application/json
Request Body required
- id string
properties object
privateProperties object
dataAddress object
Responses
- 200
- 400
- 409
Asset was created successfully. Returns the asset Id
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
result object
{
"message": "string",
"level": "string",
"result": {
"items": [
{
"assetId": "string"
}
]
}
}
Request body was malformed
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
Asset could not be created, because it does already exist.
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
POST /assets
Request
Request
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'
curl -L -X POST 'https://dgk.cx.dev.dih-cloud.com/assets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string",
"properties": {},
"privateProperties": {},
"dataAddress": {
"properties": {}
}
}'